# -*- coding: utf-8 -*-
"""
请完善文档
"""
__author__ = "shu2015626"

# 新版的DSN：'{PROTOCOL}://{PUBLIC_KEY}@{HOST}/{PROJECT_ID}' 不需要secret_key了
DSN = "http://9a8fb345fb8a45b5b2aec32769eaa775@127.0.0.1:9000/2"



from sentry_sdk.integrations.logging import SentryHandler



from sentry_sdk import init, capture_message

init(DSN)

# capture_message("Hello World")  # Will create an event.
try:
    1/0  # Will also create an event.
except ZeroDivisionError as e:
    capture_message(e)


